-- GENERATED SPELL FOR [Rot Hide Graverobber] --


function spell0_1941(pUnit, Event) --@Curse of Thule,Self--
pUnit:FullCastSpellOnTarget(3237,pUnit)
pUnit:RegisterEvent('Sorts_1941', 2000, 1)
end

function Sorts_1941(pUnit, Event)
local choix_sorts_1941 = math.random(0, 0)
if choix_sorts_1941 == 0 then
pUnit:RegisterEvent('spell0_1941', 1, 1)
end
end

function mob1941_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1941', math.random(1500, 3000), 1)
end

function mob1941_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1941_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1941_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1941, 1, 'mob1941_Action')
RegisterUnitEvent(1941, 2, 'mob1941_Leave')
RegisterUnitEvent(1941, 3, 'mob1941_Kill')
RegisterUnitEvent(1941, 4, 'mob1941_Die')
